package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuwen.gcdj.bean.common.response.StringStringKvItemResp;
import com.shuwen.gcdj.entity.PowerApi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限与Api接口关系(控制api访问权限)(t_user_power_api)数据Mapper
 *
 * @author localhost_ubuntu
 * @since 2021-11-24 21:56:05
 * @description created by mybaits plus code generator
*/
@Mapper
public interface PowerApiMapper extends BaseMapper<PowerApi> {

    /**
     * 根据角色Api关系获取授权部门id和名称
     *
     * @param powerApiId String
     * @return List<StringStringKvItemResp>
     */
    List<StringStringKvItemResp> getAuthDeptByPowerApiId(@Param("powerApiId") String powerApiId);
}
